import {readdir, readFile} from "fs/promises";

let course = 'english'
let name = 'test1.json'

let file = await readFile(`../public/questions/${course}/${name}`)
// console.log(file)
console.log(JSON.parse(file))
let data = JSON.parse(file)


let ps= []

// 听力和阅读的问题是, 一个题目有多个子题
// 设置一个sub项, 里面是子题

console.log(data)
data['ps'] = ps
